﻿// // --------------------------------------------------------------------------------------------------------------------
// // <copyright file="SiteActionsMenu.cs" company="Collaboris">
// //   Copyright Collaboris
// // </copyright>
// // <summary>
// //   
// // </summary>
// // --------------------------------------------------------------------------------------------------------------------

namespace Collaboris.ShareTest.SharePoint2010.Actions
{
    #region

    using Collaboris.ShareTest.Core;

    using OpenQA.Selenium;
    using OpenQA.Selenium.Remote;

    #endregion

    /// <summary>
    /// 	TODO: Update summary.
    /// </summary>
    public class SiteActionsMenu
    {
        #region Public Methods

        /// <summary>
        /// 	Clicks the "Edit Page" Menu item
        /// </summary>
        /// <param name = "webDriver">
        /// </param>
        public static void Click_EditPage_Menu(RemoteWebDriver webDriver)
        {
            Click_SiteActions_Menu(webDriver);

            Logger.LogMessage("Clicking Site Actions / Edit Page Menu");
            webDriver.FocusAndClick(By.Id(Common.Map.SiteActions.SiteActionsEditPageMenuId));
        }

        /// <summary>
        /// 	Clicks the Site Actions menu
        /// </summary>
        /// <param name = "webDriver">
        /// </param>
        public static void Click_SiteActions_Menu(RemoteWebDriver webDriver)
        {
            Logger.LogMessage("Clicking Site Actions Menu");
            webDriver.FocusAndClick(By.Id(Common.Map.SiteActions.SiteActionsMenuId));
        }

        #endregion
    }
}